#include "heart_task.h"

u8 HeartState = 1;

TaskHandle_t HeartTaskHandle;

void heart_Init(void){

    ledInit();
}


void heart_task(void* param){

    while (1)
    {
        if (HeartState)
        {
             LED0 = !LED0;
        }else{
            LED0 = 1;
        }
        vTaskDelay(2000);
    }
   
}

void start_heart_task(void){

    BaseType_t ret = xTaskCreate(heart_task,
        "heart_task",
        128,
        NULL,
        3,
        &HeartTaskHandle
    );
}



